import request from "@/utils/request"
const BASE_URL = process.env.VUE_APP_BASE_URL_OA
const BASE_URL_ADMIN = process.env.VUE_APP_BASE_URL

/**
 * 通讯录列表
 * @param {*} data
 */
export function addressListAPI(data) {
	return request({
		url: BASE_URL_ADMIN + "adminUser/queryListName",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

// /**
//  * 通讯录部门列表
//  * @param {*} data
//  */
// export function queryListNameByDept(data) {
//   return request({
//     url: BASE_URL +  'adminUser/queryListNameByDept',
//     method: 'post',
//     data: data,
//     headers: {
//       'Content-Type': 'application/json;charset=UTF-8'
//     }
//   })
// }

/**
 * 通讯录关注状态切换
 * @param {*} data
 */
export function toggleAttentionAPI(data) {
	return request({
		url: BASE_URL + "adminUser/attention",
		method: "post",
		data: data
	})
}
